package com.shj.em.base.vo;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * PageVO 前端 bootstrap-table 需要返回的组件
 */
@Data
@EqualsAndHashCode
public class PageVO<T> {

    private long offset;
    private long limit;
    private long total;
    private Map<String, Object> params;
    private String param;
    private List<T> rows;

    public PageVO(){
        super();
        this.offset = 0;
        this.limit = 10;
        this.total = 1;
        this.params = new HashMap<>();
        this.param = "";
        this.rows = new ArrayList<>();
    }
}
